<template>
  <div class="home-header">
    <div class="left">
      <div class="buttons">
        <div class="mac-button">
          <i class="el-icon-house"></i>
        </div>
        <div class="mac-button">
          <i class="el-icon-crop"></i>
        </div>
        <div class="mac-button">
          <i class="el-icon-full-screen"></i>
        </div>
      </div>

      <div class="history">
        <div class="back">
          <i class="el-icon-arrow-left"></i>
        </div>
        <div class="forward">
          <i class="el-icon-arrow-right"></i>
        </div>
      </div>
    </div>

    <div class="middle">
    </div>
    <div class="right">
      <el-input class="search"
                size='mini'
                placeholder="搜索歌曲"
                prefix-icon="el-icon-search"
                v-model="musicName"
                clearable>
      </el-input>
      <!-- <el-popover placement="bottom" width="200" trigger="click">
        <div>
          <span>1</span>
          <span>1</span>
          <span>1</span>
        </div>
        <div class="skin" slot="reference">
          <i class="el-icon-s-open"></i>
        </div>
      </el-popover> -->
    </div>
  </div>
</template>

<script>
export default {
  name: 'homeHeader',
  data () {
    return {
      musicName: ''
    }
  },
  created () {

  }
}
</script>

<style lang='less' scoped>
.home-header {
  height: 100%;
  display: flex;
  justify-content: space-between;
  .left {
    display: flex;
    align-items: center;
    margin-left: 0.058565rem;
    .buttons {
      display: flex;
      align-items: center;
      margin-right: 0.219619rem;
      color: #fff;
      .mac-button {
        margin-right: 0.058565rem;
        width: 0.146413rem;
        height: 0.146413rem;
        border-radius: 50%;
        text-align: center;
        line-height: 0.146413rem;
        font-size: 0.073206rem;
        cursor: pointer;

        &:hover {
          color: rgb(110, 110, 110);
        }
        &:nth-child(1) {
          background-color: #ed655a;
        }
        &:nth-child(2) {
          background-color: #e0c04c;
        }
        &:nth-child(3) {
          background-color: #72be47;
        }
      }
    }
    .history {
      display: flex;
      align-items: center;
      line-height: 0.219619rem;
      font-size: 0.183016rem;
      color: #fff;

      .back {
        width: 0.219619rem;
        height: 0.219619rem;
        margin-right: 0.036603rem;
        cursor: pointer;
        &:hover {
          color: rgb(110, 110, 110);
        }
      }
      .forward {
        width: 0.219619rem;
        height: 0.219619rem;
        cursor: pointer;
        &:hover {
          color: rgb(110, 110, 110);
        }
      }
    }
  }
  .right {
    margin-right: 0.058565rem;
    display: flex;
    justify-content: center;
    align-items: center;
    .search {
      margin-right: 0.036603rem;
      /deep/.el-input__inner {
        height: 0.183016rem;
        background-color: #dd6861;
        border: none;
      }
    }
    .skin {
      width: 0.183016rem;
      height: 0.183016rem;
      text-align: center;
      line-height: 0.146413rem;
      color: #fff;
      cursor: pointer;
      &:hover {
        color: rgb(110, 110, 110);
      }
    }
  }
}
</style>
